package com.itheima_12;

import java.util.HashSet;
import java.util.TreeSet;

public class test_12_4 {
    public static void main(String[] args) {
        HashSet<Student> t=new HashSet<>();
        Student stu=new Student("LISI",88,98,78);
        Student stu1=new Student("WANGWU",99,98,100);
        Student stu2=new Student("XIAOHUA",89,98,100);
        Student stu3=new Student("WANGWU",99,98,100);
        t.add(stu);
        t.add(stu1);
        t.add(stu2);
        t.add(stu3);
        for (Student s : t) {
            System.out.println(s);
        }
    }
}
